package com.stox.ui.swing.widget.wrapper;

import javax.swing.Icon;

public class JPayloadLabel<T> extends JLabel {
	private static final long serialVersionUID = -4205627819670542374L;

	private final T payload;
	
	public T getPayload() {
		return payload;
	}
	
	public JPayloadLabel(T payload) {
		super();
		this.payload = payload;
	}

	public JPayloadLabel(String text, T payload) {
		super(text);
		this.payload = payload;
	}

	public JPayloadLabel(Icon image, T payload) {
		super(image);
		this.payload = payload;
	}

	public JPayloadLabel(String tooltipText, Icon image, T payload) {
		super(tooltipText, image);
		this.payload = payload;
	}

	public JPayloadLabel(String text, int horizontalAlignment, T payload) {
		super(text, horizontalAlignment);
		this.payload = payload;
	}

	public JPayloadLabel(Icon image, int horizontalAlignment, T payload) {
		super(image, horizontalAlignment);
		this.payload = payload;
	}

	public JPayloadLabel(String text, Icon icon, int horizontalAlignment, T payload) {
		super(text, icon, horizontalAlignment);
		this.payload = payload;
	}
}